package priv.lirenhe.javasuper.thread.other;

public class Priority {

	public Priority() {
		System.out.println("Priority init");
	}

	public static void main(String[] args) {
		Thread minP = new Thread(new Task(),"minP");
		Thread maxP = new Thread(new Task(),"maxP");
		
		//优先级的设置，只能大致地干预，具体的执行优先级不由我们干预
		minP.setPriority(Thread.MIN_PRIORITY);
		maxP.setPriority(Thread.MAX_PRIORITY);
		
		minP.start();
		maxP.start();
	}
}
